﻿using AutoMapper;
using King.Data;

namespace King.AdminSite.Models.MapperConfig
{
    public class AutomapperConfig : Profile
    {
        public AutomapperConfig()
        {
           
            CreateMap<Article, ArticleModel>().ReverseMap();
            CreateMap<Tags, TagsModel>().ReverseMap();

            //CreateMap<Navigation, NavigationModel>()
            //    .ForMember(dest => dest.Id, opts => opts.MapFrom(c => c.NavigationId))
            //    .ForMember(dest => dest.Pid, opts => opts.MapFrom(c => c.ParentId))
            //    .ReverseMap();



        }
    }
}
